//
//  MineWalletCardListBandCardCell.m
//  copyrightTrading
//
//  Created by edz on 2020/10/23.
//  Copyright © 2020 郭子一. All rights reserved.
//

#import "MineWalletCardListBandCardCell.h"

@implementation MineWalletCardListBandCardCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI
{
    UIImageView *img = [[UIImageView alloc] init];
    img.image = [UIImage imageNamed:@"bandCard"];
    [self.contentView addSubview:img];
    [img mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(16);
        make.top.offset(20);
        make.right.offset(-16);
        make.bottom.offset(0);
    }];
    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = @"绑定银行卡账户";
    titleLabel.textColor = RGB_VALUE(0xFFFFFF);
    titleLabel.font = JSS_MEDIUM_FONT(17);
    [img addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.offset(0);
        make.height.mas_equalTo(24);
        make.left.offset(24);
        make.width.mas_equalTo(120);
    }];
    
    UIImageView *img1 = [[UIImageView alloc] init];
    img1.image = [UIImage imageNamed:@"右"];
    [img addSubview:img1];
    [img1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.offset(-20);
        make.centerY.offset(0);
        make.height.width.mas_equalTo(16);
    }];
}


@end
